//package ipad.asia.service.impl;
//
//import ipad.asia.dao.ShoppingCartDao;
//import ipad.asia.entity.ShoppingCart;
//import ipad.asia.service.ShoppingCartService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//
//import java.util.List;
//
//@Service
//public class ShoppingCartDaoImpl implements ShoppingCartService {
//    @Autowired
//    private ShoppingCartDao shoppingCartDao;
//
//
////    @Override
////    public List<ShoppingCart> findByConsumerId(int consumerId) {
////        return shoppingCartDao.findByConsumerId(consumerId);
////    }
//
//    @Override
//    public void deleteByProductId(int productId, int consumerId) {
//         shoppingCartDao.deleteByProductIdAndConsumerId(productId,consumerId);
//    }
//
//    @Override
//    public void deleteAll() {
//         shoppingCartDao.deleteAll();
//    }
//
//    @Override
//    public void save(ShoppingCart shoppingCart) {
//         shoppingCartDao.saveAndFlush(shoppingCart);
//    }
//}
